import request from '@/utils/request'

export function getAll() {

    return request({
      url: `/sell/getAll`,
      method: 'get',
    })
}

export function slUpsert(data) {

    return request({
      url: `/sell/upsert`,
      method: 'post',
      data,
    })
}

export function slCheck(data) {

    return request({
      url: `/sell/check?sellID=`+ data.sellId,
      method: 'post',
    })
}

export function slDel(data) {

    return request({
      url: `/sell/deleteById?id=`+ data.sellId,
      method: 'delete',
    })
}